package cn.dlc.com.heap;

/**
 * @author 邓立川
 * @date 2021/3/25 21:15
 * @desc 当前类的描述信息
 */
public class HeapTest {
    public static void main(String[] args) {
        Heap<String> heap = new Heap<>(7);

        heap.insert("A");
        heap.insert("B");
        heap.insert("C");
        heap.insert("D");
        heap.insert("E");
        heap.insert("F");
        heap.insert("G");

        String result = "";
        while((result = heap.delMax()) != null){
            System.out.print(result + " ");
        }
    }
}
